currentTimeMillis c#

103

currentTimeMillis c# -

private static readonly DateTime begin = new DateTime
    (1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);

public static long CurrentTimeMillis()
{
    return (long) (DateTime.UtcNow - begin).TotalMilliseconds;
}

Comments

Submit
0 Comments